home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWViews / FWAStati.cpp < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.7 KB  |  52 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWAStati.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9. // We separate the archiving functions into their own translation units in order to
  10. // enable dead-stripping.
  11.  
  12. #include "FWFrameW.hpp"
  13.  
  14. #ifndef FWSTATIC_H
  15. #include "FWStatic.h"
  16. #endif
  17.  
  18. #ifdef FW_BUILD_MAC
  19. #pragma segment fwgadgts
  20. #endif
  21.  
  22. //========================================================================================
  23. // CLASS FW_CStaticText
  24. //========================================================================================
  25.  
  26. const FW_ClassTypeConstant FW_LStaticText = FW_TYPE_CONSTANT('s','t','x','t');
  27. FW_REGISTER_ARCHIVABLE_CLASS(FW_LStaticText, FW_CStaticText, FW_CStaticText::Create, FW_CView::Read, FW_CStaticText::Destroy, FW_CView::Write)
  28.  
  29. //----------------------------------------------------------------------------------------
  30. //    FW_CButton::Create
  31. //----------------------------------------------------------------------------------------
  32.  
  33. void* FW_CStaticText::Create(FW_CReadableStream& stream, FW_ClassTypeConstant type)
  34. {
  35. FW_UNUSED(stream);
  36. FW_UNUSED(type);
  37.     FW_SOMEnvironment ev;
  38.     return FW_NEW(FW_CStaticText, (ev));
  39. }
  40.  
  41. //----------------------------------------------------------------------------------------
  42. //    FW_CStaticText::Destroy
  43. //----------------------------------------------------------------------------------------
  44.  
  45. void FW_CStaticText::Destroy(void* object, FW_ClassTypeConstant type)
  46. {
  47. FW_UNUSED(type);
  48.     FW_CStaticText* self = (FW_CStaticText*) object;
  49.     delete self;
  50. }
  51.  
  52.